﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <form id="form">
            foo：<input type="text" name="foo" value="foo" />
            zoo：<input type="text" name="zoo" value="zoo" /><br />
            bar：<input type="text" name="bar" value="bar" />
            baz：<input type="text" name="baz" value="baz" /><br />
            <input type="button" id="btn_submit" value="提交" />
        </form>
    </div>
    <script src="~/Content/js/jquery-1.8.2.js"></script>
    <script src="~/Content/js/tjzheng.js"></script>
    <script type="text/javascript">
        $("#btn_submit").click(function () {
            var objFormEntity = new FormEntity("#form");
            objFormEntity.submiting = function () {
            objFormEntity.submitSuccess = function (data) {
                alert(data);
            }
            objFormEntity.isClearData = false;
            objFormEntity.url = "/ue/postdata";
            objFormEntity.submit();
        });
    </script>
    @*@string.Format("{0}");*@
</body>
</html>
